﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Exp1
{
    public partial class Exp1 : Form
    {
        public Exp1()
        {
            InitializeComponent();
        }

        private void Exp1_Load(object sender, EventArgs e)
        {
            //设置本窗体的标题文字
            this.Text = "这是胡明辉的第一个Windows程序";
            //先创建标签控件，设置属性
            Label lblShow = new Label();
            lblShow.Location = new Point(50, 30);
            lblShow.AutoSize = true;
            lblShow.Text = "本程序由C#设计，欢迎使用";
            //将标签添加到窗体中
            this.Controls.Add(lblShow);

        }
    }
}
